﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="NewsList.aspx.cs" Inherits="News_NewsList"
    MasterPageFile="~/Main.master" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Import Namespace="Wsitech.Model" %>
<%@ Import Namespace="Wsitech.BLL" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <title>
        <%= SiteMapInfoBLL.Instance.GetSiteMapName(sitemapid)%>-联想控股官方网站</title>
    <!--news-->
    <link href="/!css/news.css" rel="stylesheet" type="text/css" />
    <!--news-->
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="content" runat="Server">
    <div class="main">
        <div class="main_left">
            <dl>
                <dt><a href="/News/Report.aspx?sitemapid=580998c2-76df-4da1-8807-4fab3e249758">媒体报道</a></dt>
            </dl>
            <dl>
                <dt><a href="/News/NewsList.aspx?sitemapid=9b458c66-3923-4a93-986f-eb62db2b4692">公司动态</a></dt>
            </dl>
            <dl>
                <dt><a class="selected" href="/News/NewsList.aspx?sitemapid=f4d900fb-e71e-4c78-96e4-68378066640b">
                    新闻稿</a></dt>
            </dl>
            <dl>
                <dt><a href="/News/Video.aspx?sitemapid=f0909e9d-e4ca-4312-a994-b9e2eeaa0e8a">视频</a></dt>
            </dl>
            <dl>
                <dt><a href="/News/NewTopics.aspx">公司专题</a></dt>
            </dl>
        </div>
        <script type="text/javascript">
            $('.main_left a').each(function () {
                var href = window.location.href;
                if (href.indexOf(this.href) != -1) {
                    $(this).addClass('selected');
                }
                else {
                    $(this).removeClass('selected');
                }
            });
        </script>
        <div class="main_right">
            <p>
                <img src="/!images/draft_pic.jpg" /></p>
            <p class="pagenavi">
                <a href="../Pages/Index.aspx">首页</a> > <a href="../News/Index.aspx">新闻中心</a> >
                <%=SiteMapInfoBLL.Instance.GetSiteMapName(sitemapid) %></p>
            <div class="media_list">
                <ul>
                    <li class="n_header">
                        <p class="n_sort">
                            公司</p>
                        <p class="n_title">
                            标题</p>
                        <p class="n_time">
                            发布时间</p>
                    </li>
                    <asp:Repeater runat="server" ID="repMain">
                        <ItemTemplate>
                            <li>
                                <p class="n_sort">
                                    <%#CompanyInfoBLL.Instance.GetCompanyName((Container.DataItem as TextInfo).CompanyId) %></p>
                                <p class="n_title">
                                    <a target="_blank" href="/News/NewsDetail.aspx?tid=<%#(Container.DataItem as TextInfo).TextInfoId %>"
                                        title="<%#(Container.DataItem as TextInfo).Title %>">
                                        <%#TextInfoBLL.Instance.CutString((Container.DataItem as TextInfo).Title,45,"...") %></a></p>
                                <p class="n_time">
                                    [<%#(Container.DataItem as TextInfo).PublishTime.ToString("yyyy-MM-dd") %>]
                                </p>
                            </li>
                        </ItemTemplate>
                    </asp:Repeater>
                </ul>
            </div>
            <div class="pages">
                <webdiyer:AspNetPager ID="AspNetPager1" runat="server" FirstPageText="首页" LastPageText="尾页"
                    NextPageText="下一页" PrevPageText="上一页" ShowPageIndexBox="Never" UrlPaging="True"
                    OnPageChanged="AspNetPager1_PageChanged" PagingButtonSpacing="0px" CurrentPageButtonStyle="color:#3e69a4;">
                </webdiyer:AspNetPager>
            </div>
            <p class="clear">
            </p>
        </div>
        <p class="clear">
        </p>
    </div>
</asp:Content>
